<?php
include_once "../regsettings.php";

?>

<html>
<head>
<title>Setup Script </title>
</head>
<body>
<p>Part 1 - create database and permssion account.  If you need a different login / pass to create tables, enter them below.  Also, if any of the tables already exist (and fit the proper structure), uncheck them.</p>
<form action="dosetup.php" method="get" >
<input type='hidden' name='mode' value='makedb' />
<div class='entry'>
<label for='rlogin'>DB login for setup</label>
<input type='text' name='rlogin' value='<?php print REG_USER ?>' />
</div>
<div class='entry'>
<label for='rpass'>DB Password for setup</label>
<input type='text' name='rpass' value='<?php print REG_PASS ?>' />
</div>
<div class='entry'>
<label for='servername'>Servername</label>
<input type='text' name='servername' value='localhost' />
</div>
<div class='entry'>
<label for='serverport'>Serverport (blank for default)</label>
<input type='text' name='serverport' />
</div>
<div class='entry'>
<label for='dbname'>DB Name [<?php print REG_DATABASE ?>]</label>
<input type='text' name='dbname' value='<?php print REG_DATABASE ?>' />
</div>
<div class='entry'>
<label for='makeusers'>Create Users Table [<?php print REG_USER_TABLE ?>]?</label>
<input type='checkbox' name='makeusers' value='1' checked='checked' />
</div>
<div class='entry'>
<label for='makeuserpage'>Create Users - Pages Table [<?php print REG_USERS_PAGES ?>]?</label>
<input type='checkbox' name='makeuserpage' value='1' checked='checked' />
</div>
<div class='entry'>
<label for='makeroles'>Create Roles Table [<?php print REG_ROLE_TABLE ?>]?</label>
<input type='checkbox' name='makeroles' value='1' checked='checked' />
</div>
<div class='submit'>
<input type='submit' name='go' value='Go' />
</div>
</form>
<a href="getsiteinfo.php">Back to Revise Site Info</a>
</body>
</html>